import cn.hutool.core.map.MapUtil;
import cn.hutool.http.HttpUtil;
import com.sl.core.utils.JsonUtil;

import java.util.Map;

public class Login {
    public static void main(String[] args) {

        String post = HttpUtil.post("https://production.turnitindetect.org/login", "{\n" +
                "  \"email\": \"grammmar1212@sina.com\",\n" +
                "  \"password\": \"Mm112211@\",\n" +
                "  \"recaptchaToken\": \"\",\n" +
                "  \"deviceInfo\": {\n" +
                "    \"deviceName\": \"Win32 - Windows NT 10.0; WOW64; x64\",\n" +
                "    \"deviceType\": \"Desktop\"\n" +
                "  }\n" +
                "}");
        System.out.println(post);

        Map<String, Object> map = JsonUtil.toMap(post);
        String cookie = MapUtil.getStr(map, "$.token");
    }
}
